package com.mark.web.sys.entity.vo;

import com.mark.common.Constant;
import com.mark.common.utils.DateTimeUtil;
import com.mark.web.sys.entity.po.UserImg;
import lombok.Data;

/**
 * @Description: 用户头像VO类
 * @Author: Mark
 * @CreateDate: 2019/1/19 21:12
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
public class UserImgVo {
    private Integer id;
    private String url;
    private String createTime;

    public UserImgVo(UserImg userImg) {
        this.id = userImg.getId();
        this.url = Constant.CampusProperties.IMAGE_HOST+userImg.getUrl();
        this.createTime = DateTimeUtil.dateToStr(userImg.getCreateTime());
    }
}
